package demo1;

public class Test {
    public static void main(String[] args) {
        CoolBoy boy1 = new CoolBoy();//实例化一个对象
        CoolBoy boy2= new CoolBoy();//实例化一个对象
        CoolBoy boy3 = new CoolBoy();//实例化一个对象

        boy1.setName("张三");
        System.out.println(boy1.getName());
        boy1.singSong();

        boy2.setName ("李四");
        boy2.singSong();

        boy3.singSong();
    }
}
